﻿using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using Autodesk.Revit.UI;
using HYRevitCode.FormUtility.ModelessFormControlSuite.ViewLayer;

namespace SampleAndTest.ModelessFormControlSuite
{
	public partial class SampleForm : BaseSwitchForm
	{
		public SampleForm(UIDocument inputDoc, IWin32Window input) : base(inputDoc, input)
		{
			this.m_nNowIndex = 0;
			this.InitializeComponent();
		}

		protected override bool ProcessKeyEventArgs(ref Message m)
		{
			int num = 256;
			int num2 = 27;
			if (m.Msg == num && m.WParam.ToInt32() == num2)
			{
				base.Close();
			}
			return base.ProcessKeyEventArgs(ref m);
		}

		private void radioButton_two_CheckedChanged(object sender, EventArgs e)
		{
			if (this.radioButton_two.Checked)
			{
				this.m_nNowIndex = 1;
			}
			else
			{
				this.m_nNowIndex = 0;
			}
			base.SendContinueMessage();
		}

		private IContainer components;
	}
}
